﻿using SyncUserAccount;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Topshelf;
using WMSSyncData.Core;

namespace WMSSyncRMData
{
    class Program
    {
        static void Main(string[] args)
        {
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
            HostFactory.Run(x =>
            {
                x.UseLog4Net();
                x.Service<ServiceRunner>();
                x.SetDescription("WMS清除离职用户");
                x.SetDisplayName("WMS-SyncUserAccount");
                x.SetServiceName("WMS-SyncUserAccount");
                x.EnablePauseAndContinue();
            });

            //new MyBll().CancelSHUsers();
            //new MyBll().CancelHYUsers();
            //new MyBll().Send();
        }
    }
}
